<!doctype html>
<html lang="en" ng-app="myApp">
<head>
  <meta charset="utf-8">
  <title>My AngularJS App</title>
  <link rel="stylesheet" href="/libs/bootstrap/css/bootstrap.min.css"/>
  <link rel="stylesheet" href="/stylesheets/style.css"/>

  <link href="/libs/angular-xeditable/css/xeditable.css" rel="stylesheet">
  <link rel="stylesheet" href="/stylesheets/preview.css"/>

  <style>
    .nav, .pagination, .carousel a { cursor: pointer; }
  </style>
</head>
<body>
  <!--<ul class="menu">-->
    <!--<li><a href="#/index">主页</a></li>-->
  <!--</ul>-->

  <div ng-view></div>

  <!--<div>Angular seed app: v<span app-version></span></div>-->

  <!-- In production use:
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
  -->
  <script src="/libs/jquery.js"></script>
  <script>
    $.ajaxTransport('jsonpi', function(opts, originalOptions, jqXHR) {
      var url = opts.url;

      return {
        send: function(_, completeCallback) {
          var name = 'jQuery_iframe_' + jQuery.now()
              , iframe, form

          iframe = $('<iframe>')
              .attr('name', name)
              .appendTo('head')

          form = $('<form>')
              .attr('method', opts.type) // GET or POST
              .attr('action', url)
              .attr('target', name)

          $.each(opts.params, function(k, v) {

            $('<input>')
                .attr('type', 'hidden')
                .attr('name', k)
                .attr('value', typeof v == 'string' ? v : JSON.stringify(v))
                .appendTo(form)
          })

          form.appendTo('body').submit()
        }
      }
    })
  </script>
  <script src="/libs/bootstrap/js/bootstrap.min.js"></script>
  <script src="/libs/angular/angular.min.js"></script>

  <script src="/libs/angular/angular-route.min.js"></script>
  <script src="/libs/angular-file-upload/angular-file-upload.js"></script>
  <script src="/libs/bootstrap-modal/ui-bootstrap-custom-tpls-0.9.0.min.js"></script>
  <script src="/libs/angular-xeditable/js/xeditable.min.js"></script>
  <script src="/javascripts/app.js"></script>
  <script src="/javascripts/services.js"></script>
  <script src="/javascripts/controllers.js"></script>
  <script src="/javascripts/filters.js"></script>
  <script src="/javascripts/directives.js"></script>
</body>
</html>
